package util;

import com.sun.lwuit.Font;
import com.sun.lwuit.Image;
import com.sun.lwuit.plaf.Border;
import com.sun.lwuit.plaf.Style;

public class MoneyControlConstants
{
	public static final int CREDIT = 1 ;
	public static final int DEBIT = 2;
	
	public static final int SCREEN_MENU = 3;
	
	public static final int SCREEN_ADDBANK = 4;
	public static final int SCREEN_EDITBANK = 5;
	public static final int SCREEN_LISTBANKS = 6;
	
	public static final int SCREEN_LISTENTRIES = 7;
	public static final int SCREEN_EDITENTRY = 8;
	public static final int SCREEN_ADDENTRY = 9;
	
	public static final int ACTION_MENU = 10;
	public static final int ACTION_CHECK_STATUS = 11;
	public static final int ACTION_MAKE_OPERATION = 12;
	public static final int ACTION_QUIT = 13;
	
	public static final String ICON_MENU_CHECK_STATUS = "/math_sum.png";
	public static final String ICON_MENU_QUIT = "/exit.png";
	public static final String ICON_MENU_MAKE_OPERATION = "/rebuild.png";
	public static final String iCON_MENU_SYNCHRONIZE = "/connect_established.png";
	public static final String ICON_MENU_ENTRIES = "/player_playlist.png";
	public static final String ICON_MENU_BANKS = "/contents2.png";
	public static final String ICON_MENU_PLACES = "/gohome.png";
	
	public static final String TEXT_COMMAND_MENU = "Menu principal";
	public static final String TEXT_COMMAND_BACK = "Voltar";
	public static final String TEXT_COMMAND_SAIR = "Sair";
	
	public static final String TEXT_MENU_ITEM_CHECK_STATUS = "Consultar saldos";
	public static final String TEXT_MENU_ITEM_MAKE_OPERATION = "Registrar operação";
	public static final String TEXT_MENU_ITEM_SYNCHRONIZE = "Sincronizar via Web";
	public static final String TEXT_MENU_ITEM_BANKS = "Gerenciar bancos";
	public static final String TEXT_MENU_ITEM_ENTRIES = "Gerenciar operações";
	public static final String TEXT_MENU_ITEM_PLACES = "Gerenciar lugares";
	public static final String TEXT_MENU_ITEM_QUIT = "Sair";
	public static final String TEXT_APPLICATION_NAME = "MoneyControl";

	public static Object[][] getMenuItens()
	{
		try
		{
			Object options[][] = {
									{ TEXT_MENU_ITEM_CHECK_STATUS,Image.createImage(ICON_MENU_CHECK_STATUS)},
									{ TEXT_MENU_ITEM_MAKE_OPERATION,Image.createImage(ICON_MENU_MAKE_OPERATION)},
									{ TEXT_MENU_ITEM_SYNCHRONIZE,Image.createImage(iCON_MENU_SYNCHRONIZE)},
									{ TEXT_MENU_ITEM_ENTRIES,Image.createImage(ICON_MENU_ENTRIES)},
									{ TEXT_MENU_ITEM_BANKS,Image.createImage(ICON_MENU_BANKS)},
									{ TEXT_MENU_ITEM_PLACES,Image.createImage(ICON_MENU_PLACES)},
									{ TEXT_MENU_ITEM_QUIT,Image.createImage(ICON_MENU_QUIT)}
			
								};
			
			return options;
		}
		catch (Exception e) 
		{
			e.printStackTrace();
		}
		
		
		return null;
	}
	
	public static Style getButtonStyle(Style s)
	{
			s.setBgTransparency(0);
			s.setBorder(Border.getEmpty());
			s.setFont(Font.createSystemFont(Font.FACE_SYSTEM, Font.STYLE_BOLD,Font.SIZE_MEDIUM));
		
			return s;
	}
}